import request from '@/utils/request'

// 分页查询球员列表
export function getMtPlayerList(query) {
  return request({
      url: 'backendApi/mtPlayer/list',
      method: 'get',
      params: query
  })
}



// 新增球员
export function saveSetting(data) {
  return request({
    url: 'backendApi/mtPlayer/save',
    method: 'post',
    data: data
  })
}

// 更新球员
export function update(data) {
  return request({
      url: 'backendApi/mtPlayer/update',
      method: 'post',
      data: data
  })
}

// 删除球员
export function deleteMtPlayer(id) {
  return request({
    url: 'backendApi/mtPlayer/delete/' + id,
    method: 'post'
  })
}

export function getMtPlayerInfor(id){
  return request({
    url: 'backendApi/mtPlayer/info/' + id,
    method: 'get'
 })
}


